<@admin.header title="测评师信息">
<@common.validate/>
<!--<script type="text/javascript">
    $(document).ready(function(){
		
		$('#mainForm').validate({
                rules: {
                    'confirm_password': {
                        required: true,
                        //	minlength: 5,
                        equalTo: "#password"
                    }
                },
                messages: {
                    'name': "用户名不能为空",
                    'password': "密码不能为空",
                    confirm_password: {
                        required: "重复密码不能为空",
                        equalTo: "两次密码输入不一致,请重新输入"
                    }
                }
            });
			
    });
</script>-->

</@admin.header>
<body>
    <div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li>
                <a href="${base}/right.do">首页</a>
            </li>
            <li>
                <a href="list.do">测评师管理</a>
            </li>
            <li>
                <a href="#">添加测评师信息</a>
            </li>
        </ul>
    </div>
	<!--ennctype 允许上传文件-->
	<form action="upload.do" method="post" id="mainForm" enctype="multipart/form-data">
	    <div class="formbody">
	        <div class="formtitle">
	            <span>测评师信息</span>
	        </div>
	        <ul class="forminfo">
	        	   <li>
	                <label class="field">
	                    	测评师名称
	                </label>
	                <input id="name" name="bean.name" type="text" class="dfinput" />
	            </li>
	            <li>
	                <label class="field">
	                  	头衔
	                </label>
	                <@nerve.r_evaluator value="" name="bean.title" class="dfinput" />
	            </li>
				<li>
	                <label class="field">
	                  	  简介
	                </label>
	               <textarea name="bean.information" class="textinput" style="width:325px;margin:8px auto;"></textarea>
	            </li>
				<li>
	                <label class="field">
	                   	 头像地址
	                </label>
	                <input name="upload_file" type="file" class="dfinput" 
					validate="{required:true,accept:'jpg|png|bmp|gif|jpeg', messages:{accept:'只支持图片文件'}}" 
						title="图片文件不能为空"/><i>&nbsp;</i>
	            </li>
	            <li>
	                <label class="field">
	                    &nbsp;
	                </label>
	                <input type="submit" class="btn" value="确认保存"/>
	            </li>
	        </ul>
	    </div>
	</form>
</body>
<script>
	$(document).ready(function(){
		//判断是否需要提示错误信息, 信息来源 Controller 中的redirectA.addFlashAttribute("error", e.getMessage());
		<#if error??>
		App.toast.error("${error}");
		</#if>
	});
</script>
</html>